package com.example.CollaborativeDiscussionLearning.service.CourseStudentService;

import com.example.CollaborativeDiscussionLearning.entity.CourseStudent;
import com.example.CollaborativeDiscussionLearning.mapper.CourseStudentMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 课程服务实体类
 * */
@Slf4j
@Service
public class CourseStudentServiceImpl implements CourseStudentService {

    @Autowired
    private CourseStudentMapper courseStudentMapper;

    @Override
    public int insert(CourseStudent courseStudent) {
        return courseStudentMapper.insert(courseStudent);
    }

    @Override
    public int delete(Integer id) {
        return courseStudentMapper.delete(id);
    }

    @Override
    public int update(CourseStudent courseStudent) {
        return courseStudentMapper.update(courseStudent);
    }

    @Override
    public CourseStudent queryCourseStudent(CourseStudent courseStudent) {
        return courseStudentMapper.queryCourseStudent(courseStudent);
    }
}

